package com.dw.etl.core.bean.model;

import java.io.Serializable;

public class BaseDb implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long idDb;

	private String na;

	private String driver;

	private String url;

	private String tbSchema;

	private String usename;

	private String psword;

	private String euTp;

	public Long getIdDb() {
	    return idDb;
	}

	public void setIdDb(Long idDb) {
	    this.idDb = idDb;
	}

	public String getEuTp() {
	    return euTp;
	}

	public void setEuTp(String euTp) {
	    this.euTp = euTp;
	}

	public String getNa() {
	    return na;
	}

	public void setNa(String na) {
	    this.na = na;
	}

	public String getDriver() {
	    return driver;
	}

	public void setDriver(String driver) {
	    this.driver = driver;
	}

	public String getUrl() {
	    return url;
	}

	public void setUrl(String url) {
	    this.url = url;
	}

	public String getTbSchema() {
		return tbSchema;
	}

	public void setTbSchema(String tbSchema) {
		this.tbSchema = tbSchema;
	}

	public String getUsename() {
	    return usename;
	}

	public void setUsename(String usename) {
	    this.usename = usename;
	}

	public String getPsword() {
	    return psword;
	}

	public void setPsword(String psword) {
	    this.psword = psword;
	}

	@Override
	public boolean equals(Object that) {
	    if (this == that) {
	        return true;
	    }
	    if (that == null) {
	        return false;
	    }
	    if (getClass() != that.getClass()) {
	        return false;
	    }
	    BaseDb other = (BaseDb) that;
	    return (this.getIdDb() == null ? other.getIdDb() == null : this.getIdDb().equals(other.getIdDb())) && (this.getEuTp() == null ? other.getEuTp() == null : this.getEuTp().equals(other.getEuTp())) && (this.getNa() == null ? other.getNa() == null : this.getNa().equals(other.getNa())) && (this.getDriver() == null ? other.getDriver() == null : this.getDriver().equals(other.getDriver())) && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl())) && (this.getUsename() == null ? other.getUsename() == null : this.getUsename().equals(other.getUsename())) && (this.getPsword() == null ? other.getPsword() == null : this.getPsword().equals(other.getPsword()));
	}

	@Override
	public int hashCode() {
	    final int prime = 31;
	    int result = 1;
	    result = prime * result + ((getIdDb() == null) ? 0 : getIdDb().hashCode());
	    result = prime * result + ((getEuTp() == null) ? 0 : getEuTp().hashCode());
	    result = prime * result + ((getNa() == null) ? 0 : getNa().hashCode());
	    result = prime * result + ((getDriver() == null) ? 0 : getDriver().hashCode());
	    result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
	    result = prime * result + ((getUsename() == null) ? 0 : getUsename().hashCode());
	    result = prime * result + ((getPsword() == null) ? 0 : getPsword().hashCode());
	    return result;
	}

	@Override
	public String toString() {
	    StringBuilder sb = new StringBuilder();
	    sb.append(getClass().getSimpleName());
	    sb.append(" [");
	    sb.append("Hash = ").append(hashCode());
	    sb.append(", serialVersionUID=").append(serialVersionUID);
	    sb.append(", idDb=").append(idDb);
	    sb.append(", euTp=").append(euTp);
	    sb.append(", na=").append(na);
	    sb.append(", driver=").append(driver);
	    sb.append(", url=").append(url);
	    sb.append(", usename=").append(usename);
	    sb.append(", psword=").append(psword);
	    sb.append("]");
	    return sb.toString();
	}


}